xs:string('[')
,
let $result :=
	let $wines := doc("jasonmonberg.xml")/jasonmonberg/wines
	for $wine in $wines/wine
	where $wine/@dateViewed <= fn:current-dateTime()
	order by $wine/@dateViewed descending
		return fn:concat(xs:string('["'),$wine/@id,xs:string('","'), $wine/vintage, xs:string(' '),$wine/winery, xs:string(' '), $wine/name ,xs:string('"],'))
return $result[position() <= 5]
,
xs:string(']')


